package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;

/**
 * <p>
 * hr_position 岗位表
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("hr_position")
public class HrPosition extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 上级岗位
     */
    private Integer pid;
    /**
     * 岗位名称
     */
    private String name;
    /**
     * path
     */
    private String path;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 职能类型
     */
    private Integer type;
    /**
     * 岗位级别
     */
    private Integer level;
    /**
     * 职责
     */
    private String duty;
    /**
     * 入职要求
     */
    private String requirement;
    /**
     * 岗位工作概述
     */
    private String description;
    /**
     * 备注
     */
    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "HrPosition{" +
                "id=" + id +
                ", pid=" + pid +
                ", name=" + name +
                ", path=" + path +
                ", sort=" + sort +
                ", type=" + type +
                ", level=" + level +
                ", duty=" + duty +
                ", requirement=" + requirement +
                ", description=" + description +
                ", remark=" + remark +
                ", ctime=" + ctime +
                "}";
    }
}
